#include "../NewSyndrome-module.h"

void
module_init (void)
{
  bot_set_ident_module ("nolol");
  bot_set_auteur_module ("Thaeron");
  bot_set_version_module ("0.1");

  bot_add_type_handler ("PRIVMSG", "pouf_dehors");
}

#ifdef WIN32
void
init_dep (char *nom, void *addr)
{
  init_share_dep (nom, addr);
}
#endif


int
pouf_dehors (msg * i)
{
  int a;
  char buffer[201];
  if (!strcasecmp (i->dest, "#programmation"))
    for (a = 0; a < i->nbarg; a++)
      if (!strcasecmp (i->argu[a], "lol"))
	{
	  snprintf (buffer, 200, "KICK #programmation %s :http://touchetoi.org/lol.gif\n", i->sender_nick);
	  bot_send_raw (buffer);
	  return 0;
	}

  return 0;
}
